﻿using System;

namespace Hourglass.Qrobot
{
    public abstract class QQState
    {
        public void HandlerWrapper(QQContext context)
        {
            try
            {
                Handler(context);
            }
            catch (Exception e)
            {
                context.Exception = e;
            }
        }

        public abstract void Handler(QQContext context);
    }
}
